global equal, currentsel, foundation, godlist, action
on beginSprite me
column = determinecolumn()
baserank = #ace
end
on mouseEnter me
if (the clickOn <> 0) and (the clickOn > 5) then
if sprite(the clickOn).member <> member("empty", "playing cards") then
if (action = 1) or (action = 0) then
if sprite(spriteNum - 118).member = member("empty", "playing cards") then
if getlist(the clickOn).rank.symbol = baserank then
equal = 1
currentsel = spriteNum - 118
godlist = foundation[column]
end if
else
if (getlist(the clickOn).rankvalue = (foundation[column].getlastcard().rankvalue + 1)) and (getlist(the clickOn).suit = foundation[column].getlastcard().suit) then